package day08;

import java.util.Scanner;

public class MainTest01 {
    public static void main(String[] args) {
        //创建对象 ，调用对象
        //Dog //类，类型  数据类型
        int num = 10;
        //Dog 自定义类型 ==引用数据类型
        //创对象 dog 对象
        Dog dog = new Dog();
        // 操作符
        dog.name = "旺财";
        dog.age=3;
        dog.color = "黑色";
        dog.sex ="公";
        dog.strain="哈士奇";
        dog.weight =10;
        //操作方法
        dog.eat();
        dog.run();
        //如何在创建另一只狗
        Dog dog1 =new Dog();
       dog1.name ="小黑";

        Car car =new Car();
        car.model ="Tesla";
        car.brand ="Mode 3";
        car.color ="黑色";
        car.price =30;
        car.show();
        car.go();
        car.back();



    }
}
